ReactiveViewHost class¶
Attributes: [DebuggerDisplay("{ViewModel}")]
Defined in
Namespace: ReactiveUI
Assembly: ReactiveUI.dll
Full name: ReactiveUI.ReactiveViewHost<T>
Modifiers: public
Summary¶
A class that implements the Android ViewHolder pattern with a ViewModel. Use it along with GetViewHost.
Applies to
net10.0-android36.0
Class hierarchy
classDiagram
class ReactiveViewHost~T~
class LayoutViewHost
LayoutViewHost <|-- ReactiveViewHost~T~
class IViewFor~TViewModel~ {
<>
}
IViewFor~TViewModel~ <|.. ReactiveViewHost~T~
class IViewFor {
<>
}
IViewFor <|.. ReactiveViewHost~T~
class IActivatableView {
<>
}
IActivatableView <|.. ReactiveViewHost~T~
class IReactiveNotifyPropertyChanged~ReactiveViewHost~TViewModel~~ {
<>
}
IReactiveNotifyPropertyChanged~ReactiveViewHost~TViewModel~~ <|.. ReactiveViewHost~T~
class IReactiveObject {
<>
}
IReactiveObject <|.. ReactiveViewHost~T~
class INotifyPropertyChanged {
<>
}
INotifyPropertyChanged <|.. ReactiveViewHost~T~
class INotifyPropertyChanging {
<>
}
INotifyPropertyChanging <|.. ReactiveViewHost~T~
class IEnableLogger {
<>
}
IEnableLogger <|.. ReactiveViewHost~T~
Inherits from: LayoutViewHost
Implements: IViewFor<TViewModel>, IViewFor, IActivatableView, IReactiveNotifyPropertyChanged
Remarks¶
Every constructor is safe to trim and to compile ahead of time. Wire child controls in the bind callback,
or derive from ReactiveViewHostUnsafe to wire them by reflection and fill
AllPublicProperties.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [ReactiveViewHost](# class. |
Properties¶
| Name | Summary |
|---|---|
| ViewModel | Gets or sets the view model displayed by the view. |
| Changing | Gets an observable that fires before a property is about to be changed. Note that this should not fire duplicate change notifications if a property is set to the same... |
| Changed | Gets an Observable that fires after a property has changed. Note that this should not fire duplicate change notifications if a property is set to the same value multiple... |
| ThrownExceptions | Gets an observable of exceptions thrown during reactive operations on this instance. |
| AllPublicProperties | Gets or sets the lazily-computed set of public properties used by legacy reflection-based wiring. |
Methods¶
| Name | Summary |
|---|---|
| SuppressChangeNotifications | When this method is called, an object will not fire change notifications (neither traditional nor observable) until the return value is disposed. |
| AreChangeNotificationsEnabled | Gets a value indicating whether change notifications are enabled. |
Events¶
| Name | Summary |
|---|---|
| PropertyChanged | Occurs when a property value changes. |
| PropertyChanging | Occurs when a property value is changing. |
Inherited members
ReactiveUI.LayoutViewHost.#ctorReactiveUI.LayoutViewHost.#ctor(Android.Content.Context,System.Int32,Android.Views.ViewGroup,System.Boolean)ReactiveUI.LayoutViewHost.#ctor(Android.Content.Context,System.Int32,Android.Views.ViewGroup,System.Boolean,System.Action{ReactiveUI.LayoutViewHost,Android.Views.View})ReactiveUI.LayoutViewHost.op_Implicit(ReactiveUI.LayoutViewHost)~Android.Views.ViewReactiveUI.LayoutViewHost.ToViewReactiveUI.LayoutViewHost.ViewSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)System.Object.ToString